package com.uzai.console.mapper;

import com.uzai.console.entity.RedPacketRandomDetail;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RedPacketRandomDetailMapper {
    int deleteById(@Param("id") Long id, @Param("merId") Long merId);

    int insert(RedPacketRandomDetail record);

    int insertSelective(RedPacketRandomDetail record);

    RedPacketRandomDetail selectById(@Param("id") Long id, @Param("merId") Long merId);

    int updateByIdSelective(RedPacketRandomDetail record);

    int updateById(RedPacketRandomDetail record);

    /**
     * 根据随机红包id查询列表
     * @param randomId
     * @param merId
     * @return
     */
    List<RedPacketRandomDetail> findListByRandomId(@Param("randomId") Long randomId, @Param("merId") Long merId);
}